import { type LocationQueryValue } from "vue-router"
//消息列表
export type GetMessageParams = {
  companyId?: string
  companyName?: string | LocationQueryValue | LocationQueryValue[]
  endTime?: string
  startTime?: string
  messageCategory?: string
  messageLevel?: string
  messageType?: string
  page: number
  perPage: number
  sideType?: "UNKNOWN" | "WEB" | "ADMIN" | "APP" | "APPLET"
}
export type MessageItem = {
  companyName: string
  id: number
  message: string
  messageLevel: string
  messageLevelDesc: string
  messageType: string
  messageTypeDesc: string
  updateTime: string
}
export type GetMessageRes = ApiResponseData<{
  currentPage: number
  hasNextPage: boolean
  list: MessageItem[]
  total: number
  totalPage: number
}>
// 推送设置
export type PushData = {
  daySendTime: string
  popuped: boolean
  phoneSended: boolean
  mobileList: string[]
  emailSended: boolean
  emailList: string[]
  messageLevelList: string[]
  messageTypeList: string[]
}
export type GetPushingRes = ApiResponseData<PushData>
export type savePushingRes = ApiResponseData<boolean>
//监控列表
export type GetMonitorParams = {
  companyNameLike: string
  updateTimeLevel: string
  updateTimeStart: string
  updateTimeEnd: string
  operateStatus: string
  registeredCapitalType: string
  startyearType: string
  page: number
  perPage: number
  sideType?: "UNKNOWN" | "WEB" | "ADMIN" | "APP" | "APPLET"
}
export type MonitorItem = {
  companyId: number
  companyName: string
  createTime: string
  groupId: number
  id: number
  negativeCount: number
  neutralCount: number
  positiveCount: number
  riskLevelHigh: number
  riskLevelMiddle: number
  riskLevelOk: number
  riskLevelTip: number
  riskLevelWaring: number
  userId: number
  valid: boolean
  validBegintime: string
}
export type GetMonitorRes = ApiResponseData<{
  currentPage: number
  hasNextPage: boolean
  list: MonitorItem[]
  total: number
  totalPage: number
}>
